Configuration
| Name |
Type |
Description |
| currentUrl |
String |
Url address of current module page |
| isCompleted |
Boolean |
This module is completed or not |
| isEditable |
Boolean |
This module is editable now or not |
| isCompletable |
Boolean |
User has permission for complete this module |
| onPreviousPage |
Function |
Callback will be called when click on previous page, include click on Previous button. Argument is 'clickedElement' |
| onNextPage |
Function |
Callback will be called when click on next page, include click on Next button or Submit button of Quiz page. Argument is 'clickedElement' |
| onQuizSubmit |
Function |
Callback will be called after clicking on Submit button on Quiz page. Argument is 'quizForm' |
| onQuizSuccess |
Function |
Callback will be called after Quiz is submitted successfully.Arguments are 'quizForm' and 'response' |
| onQuizError |
Function |
Callback will be called after Quiz is error. Maybe blank or wrong answers, or other errors will be occurred. Arguments are 'quizForm' and 'response' |
Default Configuration
{
currentUrl: '',
isCompleted: false,
isEditable: false,
isCompletable: false,
onPreviousPage: null,
onNextPage: null,
onQuizSubmit: null,
onQuizSuccess: null,
onQuizError: null
}
Ask a question, or offer an answer